@layout("../../system/layout.html", {title: "项目记录表"}){
<table class="form" id="form" xmlns:v-bind="http://www.w3.org/1999/xhtml">
    <tr>
        <td class="formTitle">医院<font face="宋体">*</font></td>
        <td class="formValue">
            <select v-model="projectRecord.hospitalId" class="form-control" placeholder="医院" isvalid="yes" checkexpession="NotNull">
                <option v-for="option in optionsHospital" v-bind:value="option.macroId">
                    {{ option.name }}
                </option>
            </select>
        </td>
    </tr>
    <tr>
        <td class="formTitle">科室<font face="宋体">*</font></td>
        <td class="formValue">
            <input type="text" class="form-control" placeholder="科室" v-model="projectRecord.department" isvalid="yes" checkexpession="NotNull">
        </td>
    </tr>
    <tr>
        <td class="formTitle">项目名称<font face="宋体">*</font></td>
        <td class="formValue">
            <input type="text" class="form-control" placeholder="项目名称" v-model="projectRecord.projectName" isvalid="yes" checkexpession="NotNull">
        </td>
    </tr>
    <tr>
        <td class="formTitle">联系人<font face="宋体">*</font></td>
        <td class="formValue">
            <input type="text" class="form-control" placeholder="联系人" v-model="projectRecord.contact" isvalid="yes" checkexpession="NotNull">
        </td>
    </tr>
    <tr>
        <td class="formTitle">联系电话<font face="宋体">*</font></td>
        <td class="formValue">
            <input type="text" class="form-control" placeholder="联系电话" v-model="projectRecord.contactNumber" isvalid="yes" checkexpession="NotNull"
                   onblur="value = value.length < 11 ? '手机号长度为11位!':value" onkeyup="value = value.replace(/[^\d]/g,''); value = (value.length > 11)? value.substr(0,11) : value; value = value.match(/^1/)? value :'';">
        </td>
    </tr>
    <tr>
        <td class="formTitle">运维人员<font face="宋体">*</font></td>
        <td class="formValue">
            <input type="text" class="form-control" placeholder="运维人员" v-model="projectRecord.operationMaintenancePerson" isvalid="yes" checkexpession="NotNull">
        </td>
    </tr>
    <tr>
        <td class="formTitle">解决状态</td>
        <td class="formValue">
            <select v-model="projectRecord.resolvingStatusId" class="form-control" isvalid="no">
                <option v-for="option in optionsResolvingStatus" v-bind:value="option.macroId">
                    {{ option.name }}
                </option>
            </select>
        </td>
    </tr>
    <tr>
        <td class="formTitle">解决进展</td>
        <td class="formValue">
            <textarea rows="2" class="form-control" placeholder="解决进展" v-model="projectRecord.resolvingProgress" isvalid="no"></textarea>
        </td>
    </tr>
    <tr>
        <td class="formTitle">项目概述<font face="宋体">*</font></td>
        <td class="formValue">
            <textarea rows="2" class="form-control" placeholder="项目概述" v-model="projectRecord.projectOverview" isvalid="yes" checkexpession="NotNull"></textarea>
        </td>
    </tr>
    <tr>
        <td class="formTitle">附件</td>
        <td class="formValue">
            <input type="text" class="form-control" v-model="projectRecord.attachment">
            <input type="file" name="file" v-model="projectRecord.attachment" id="cover" style="display: none;" onchange="uploadCover()" placeholder="附件" isvalid="no">
            <input type="button" class="btn btn-default btn-sm" value="上传附件" onclick="selectCover()">
        </td>
    </tr>
</table>
<script src="${ctxPath}/static/js/base/record/edit.js"></script>
@}